package com.zzz.util.spring.bool;

public class ZMathUtil {

    public static <T extends Number> boolean isOdd(T number) {
        long l = number.longValue() & 1;
        return l == 1;
    }

    public static <T extends Number> boolean isEven(T number) {
        return !isOdd(number);
    }

}
